@using Microsoft.AspNetCore.Components.Authorization
@using MyBlogServer.Services
@inject NavigationManager Navigation
@inject CustomAuthenticationStateProvider AuthStateProvider
@inject IJwtAuthService JwtAuthService

@inherits LayoutComponentBase

<div class="admin-layout">
    <header class="admin-header">
        <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
            <div class="container-fluid">
                <a class="navbar-brand" href="/admin/posts">博客管理系统</a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav me-auto">
                        <li class="nav-item">
                            <a class="nav-link" href="/admin/posts">文章管理</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/admin/files">文件管理</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/admin/change-password">修改密码</a>
                        </li>
                    </ul>
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="/admin/logout">退出登录</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>

    <main class="admin-main">
        <div class="container-fluid">
            @Body
        </div>
    </main>
</div>

 